<template>
  <div ref="containerRef"></div>
</template>

<script setup>
import initPage from './utils'
import { treeData } from './data.js'
import { onMounted, ref } from 'vue'

const containerRef = ref(null)

onMounted(() => {
  initPage(
    containerRef.value,
    (item) => {
      console.log('点击事件', item)
    },
    treeData
  )
})
</script>
<style scoped lang="scss"></style>
